package com.ivo.act.common.result;

/**
 * 后台返回结果集枚举
 * @author wj
 * @version 1.0
 */
public enum ResultEnum {

    /**
     * 通用状态
     */
    SUCCESS(200, "成功"),
    ERROR(500, "错误"),
    ;

    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
